package com.atmilan.quartz.model.dto.folli;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 喜洋洋商品映射对象
 * @Description:
 * @author daigb
 * @date 2021-06-02
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class FolliProductResDTO implements Serializable {

    /**
     * 商品数据
     */
    private List<FolliGoodsRes> products;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class FolliGoodsRes implements Serializable {
        /**
         * 商品id
         */
        @JsonProperty(value = "sku")
        private String sku;

        /**
         * 商品名称
         */
        @JsonProperty(value = "name")
        private String name;

        /**
         * 商品描述
         */
        @JsonProperty(value = "description")
        private String description;

        /**
         * 颜色
         */
        @JsonProperty(value = "color")
        private String color;

        /**
         * designer_id
         */
        @JsonProperty(value = "designer_id")
        private String designerId;

        /**
         * 季节
         */
        @JsonProperty(value = "season")
        private String season;

        /**
         * 一级分类
         */
        @JsonProperty(value = "first_category")
        private String firstCategory;

        /**
         * 二级分类
         */
        @JsonProperty(value = "category")
        private String category;

        /**
         * 性别
         */
        @JsonProperty(value = "gender")
        private String gender;

        @JsonProperty(value = "made_in")
        private String madeIn;

        /**
         * 成分
         */
        @JsonProperty(value = "composition")
        private String composition;

        @JsonProperty(value = "dimensions")
        private String dimensions;

        /**
         * 品牌
         */
        @JsonProperty(value = "brand")
        private String brand;

        /**
         * 原价
         */
        @JsonProperty(value = "price")
        private String price;

        /**
         * 成本价
         */
        @JsonProperty(value = "discount")
        private String discount;

        @JsonProperty(value = "size_unit")
        private String sizeUnit;

        @JsonProperty(value = "size_country")
        private String sizeCountry;

        /**
         * 图片
         */
        @JsonProperty(value = "images")
        private List<String> images;

        /**
         * sizes
         */
        @JsonProperty(value = "sizes")
        private List<FolliSku> sizes;

        @Data
        @JsonIgnoreProperties(ignoreUnknown = true)
        public static class FolliSku {
            /**
             * size
             */
            @JsonProperty(value = "size")
            private String size;

            /**
             * stock
             */
            @JsonProperty(value = "stock")
            private Integer stock;
        }
    }

}
